.custom-color-picker-container {
    position: relative;
    width: calc(265px + 224px + 12px + 30px);
    // height: 345px;
    overflow: visible;
    padding-right: 30px;
    .custom-color-picker {
        position: relative;
        width: 268px;
        height: 345px;
        padding-top: 5px;
        overflow: hidden;
        z-index: 999;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.099);
        border: 1px solid #e7e9e8;
        box-sizing: border-box;
        .color-picker-header {
            width: 100%;
            height: 38px;
            background-color: #fff;
            transition: all ease 0.25s;
            cursor: pointer;
            padding: 0 10px;

            .color-picker-name {
                font-size: 14px;
                color: #262626;
                margin: 0;
                margin-left: 8px;
            }
        }

        .color-picker-header:hover {
            background-color: #f4f5f5;
        }

        .custom-color-picker-content {
            flex-direction: row;
            justify-content: flex-start;
            align-items: flex-start;
            flex-wrap: wrap;
            padding: 10px;
        }

        .commonly-color-title {
            font-size: 14px;
            color: #303133;
            margin: 0;
            width: 100%;
            text-align: left;
            padding: 0 10px;
            margin-bottom: 8px;
        }

        .commonly-color-content {
            height: 42px;
            flex-direction: row;
            justify-content: flex-start;
            align-items: flex-start;
            flex-wrap: wrap;
            padding: 10px;
            padding-top: 0;
        }

        .custom-color-picker-footer {
            width: 100%;
            height: 48px;
            border-top: 1px solid #eee;
            margin-top: -3px;
            justify-content: space-between;
            align-items: center;
            padding: 0 12px;
            cursor: pointer;
            transition: all ease 0.25s;
            overflow: hidden;
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
            user-select: none;

            .custom-color-picker-footer-left {
                height: 100%;
                justify-content: flex-start;
                align-items: center;

                img {
                    width: 20px;
                    height: 20px;
                    margin-right: 8px;
                }

                p {
                    font-size: 14px;
                    color: #262626;
                    margin: 0;
                }
            }

            i {
                font-size: 12px;
                color: #303133;
                display: block;
                transform: rotateZ(-90deg) scale(0.52);
                margin-right: -6px;
            }
        }

        .custom-color-picker-footer:hover {
            background-color: #f4f5f5;
        }
    }

    .custom-color-picker-box {
        position: absolute;
        right: 30px;
        bottom: 0px;
        width: 224px;
        height: 278px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 0px 0px 0px rgba(0, 0, 0, 0.062);
        border: 1px solid #e7e9e8;
        transition: all ease 0.2s;
        transform: scaleX(0.6);
        transition-delay: 0ms;
        transform-origin: left;
        transition-duration: 200ms;
        opacity: 0;
        z-index: -1;
        font-feature-settings: 'tnum';
        font-variant: 'tabular-nums';
        overflow: hidden;
        pointer-events: none;

        .sketch-picker {
            border: none !important;
            box-shadow: none !important;
        }

        .custom-color-picker-box-footer {
            width: 100%;
            height: 32px;
            justify-content: flex-end;
            align-items: center;
            padding-right: 12px;
        }
    }

    .custom-color-picker-box.show {
        display: flex;
        transform: scaleX(1);
        opacity: 1;
        z-index: 999!important;
        box-shadow: 0 8px 16px 4px rgba(0, 0, 0, 0.062);
        pointer-events: all;
        visibility: visible;
    }
}


.color-picker-item {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    cursor: pointer;

    .color-picker-item-content {
        width: 20px;
        height: 20px;
        border: 1px solid transparent;
        border-radius: 3px;
        transition: all ease 0.25s;
        box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
        background-color: #fff;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;

        .color-picker-item-box {
            width: 20px;
            height: 20px;
            background-image:
                linear-gradient(45deg, #ccc 25%, transparent 0, transparent 75%, #ccc 0),
                linear-gradient(45deg, #ccc 25%, transparent 0, transparent 75%, #ccc 0);
            background-position: 0 0, 3px 3px;
            background-size: 6px 6px;
            overflow: hidden;
        }
    }
}

.color-picker-item-content:hover {
    transform: scale(1.16);
    border: 1px solid #bfbfbf;
    box-shadow: rgba(0, 0, 0, 0.72) 0px 0px 3px;

    .color-picker-item-box {
        width: 20px;
        height: 20px;
    }
}